<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$userinfo.username} - {$settings.site.sitename}</title>

 {include file="public/css"}
 {include file="public/js"}
</head>
<body>

<div class="fly-header layui-bg-black">
  {include file="public/header"}
</div>

{include file="home/center"}

<div class="layui-container">
<div class="layui-row fly-panel">
    <div class="layui-tab layui-tab-card" lay-filter="info">
      <ul class="layui-tab-title">
        <li  {if $Request.action == 'index'}  class="layui-this" {/if} ><a href="/u/{$userinfo.uid}">来自买家的评价</a></li>
        <li {if $Request.action == 'sellerevaluate'}  class="layui-this" {/if}><a href="/u/{$userinfo.uid}/sellerEvaluate" >来自卖家的评价</a></li>
        <li  {if $Request.action == 'info'}  class="layui-this" {/if}><a href="/u/{$userinfo.uid}/info">所有交易</a></li>


      </ul>
      <div class="layui-tab-content">
 

        <div class="layui-tab-item layui-show">
         <p style="padding:20px;">综合评价：工作速度：{:stars('speed',$userinfo.buyer_works_peed)}工作质量 {:stars('quality',$userinfo.buyer_works_quality)} 工作态度： {:stars('attitude',$userinfo.buyer_works_attitude)}
         </p>

                  <table class="layui-table" lay-even lay-skin="nob">
                    <colgroup>
                      <col width="80">
                      <col >

                    </colgroup>
                    <thead>
                      <tr>
                        <th>评价人</th>
                        <th>评价内容</th>

                      </tr> 
                    </thead>
                    <tbody >
                    {volist name="list" id="vo" empty="$empty"}
                      <tr>
                        <td width="80">
                        <a href="/u/{$vo.id}" target="_blank">{:avatar($vo.buyer_uid,128)}</a>
                        <p style="text-align:center">{$vo.buyer}</p></td>
                        <td>
                        <h3>{if $vo.buyer_evaluate ==1}
                       <span class="layui-badge layui-bg-blue"> 好评</span>
                        {elseif $vo.buyer_evaluate ==2}
                        <span class="layui-badge layui-bg-orange">中评</span>
                        {elseif $vo.buyer_evaluate ==3}
                        <span class="layui-badge">差评</span>
                        {/if}
                        {$vo.title}</h3>

                        <p style="height:30px;line-height:30px;padding: 10px;">{if !empty($vo.buyer_evaluate_content)}{$vo.buyer_evaluate_content}{else}对方很懒，没有写评语！{/if}</p>
                        <p>工作速度：{:stars('speed-'.$vo.id,$vo.buyer_works_peed)}工作质量 {:stars('quality-'.$vo.id,$vo.buyer_works_attitude)} 工作态度： {:stars('attitude-'.$vo.id,$vo.buyer_works_quality)}
                          </p> 
                        </td>
                      </tr>
                    {/volist}
                    </tbody>
                  </table>
            <div id="pages">{$page|raw}</div>
        </div>

      </div>
    </div>
</div>

  
  </div>
</div>

<!-- 会员底部文件 -->
{include file="public/footer"}



<script>
layui.use(['element','flow','rate'], function(){
  var element = layui.element;


});
</script>  

</body>
</html>